package org.jim.server.helper.db.mybatis.model;

import java.util.Date;

public class UserMessage {
	private String id;
	private String redisId;
	private Integer chatType;
	private Integer cmd;
	private String content;
	private Long createTime;
	private String from;
	private String to;
	private Integer msgType;

	private String visit_no;
	private String extras;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRedisId() {
		return redisId;
	}

	public void setRedisId(String redisId) {
		this.redisId = redisId;
	}

	public Integer getChatType() {
		return chatType;
	}

	public void setChatType(Integer chatType) {
		this.chatType = chatType;
	}

	public Integer getCmd() {
		return cmd;
	}

	public void setCmd(Integer cmd) {
		this.cmd = cmd;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public Integer getMsgType() {
		return msgType;
	}

	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}

	public String getVisit_no() {
		return visit_no;
	}

	public void setVisit_no(String visit_no) {
		this.visit_no = visit_no;
	}

	public String getExtras() {
		return extras;
	}

	public void setExtras(String extras) {
		this.extras = extras;
	}

	public UserMessage(String redisId, Integer chatType, Integer cmd, String content, Long createTime, String from, String to, Integer msgType, String visit_no, String extras) {
		super();
		this.redisId = redisId;
		this.chatType = chatType;
		this.cmd = cmd;
		this.content = content;
		this.createTime = createTime;
		this.from = from;
		this.to = to;
		this.msgType = msgType;
		this.visit_no = visit_no;
		this.extras = extras;
	}
	public UserMessage() {
		super();
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("{");
		sb.append("\"id\":\"")
				.append(id).append('\"');
		sb.append(",\"redisId\":\"")
				.append(redisId).append('\"');
		sb.append(",\"chatType\":")
				.append(chatType);
		sb.append(",\"cmd\":")
				.append(cmd);
		sb.append(",\"content\":\"")
				.append(content).append('\"');
		sb.append(",\"createTime\":")
				.append(createTime);
		sb.append(",\"from\":")
				.append(from);
		sb.append(",\"to\":")
				.append(to);
		sb.append(",\"msgType\":")
				.append(msgType);
		sb.append(",\"extras\":")
				.append(this.extras);
		sb.append('}');
		return sb.toString();
	}
}